package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@TableName("`order`")
public class Order {

    @TableId(value = "order_id",type = IdType.AUTO)
    Integer order_id;


    Integer shop_id;

    Integer user_id;

    Integer delivery_type;

    String shop_name;

    Integer total;

    @TableField(value = "`status`")
    Integer status;

    Integer all_count;

    @ApiModelProperty(hidden = true)
    Integer is_payed;

    @ApiModelProperty(hidden = true)
    Integer order_addr_id;


    @TableField(exist = false)
    OrderAddr orderAddr;

    @TableField(exist = false)
    List<OrderItem> orderItemList;

}
